<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ include file="../common.inc" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table class="table_sreport" >
	<tr>
		<td class="title">合同编号</td>
		<td class="title">合同名称</td>
		<td class="title">签约日期</td>
		<td class="title">签约金额</td>
		<td class="title">已回款</td>
		<td class="title">业绩</td>
		<td class="title">毛利金额</td>
		<td class="title">回款日期</td>
	</tr>
	<c:forEach items="${Contract}" var="item">
	<tr>
		<td>${item.contractCode }</td>
		<td>${item.contractName }</td>
		<td><fmt:formatDate value="${item.contractDate }" pattern="yyyy-MM-dd"/></td>
		<td>￥<fmt:formatNumber value="${item.contractCost }" pattern="###,###,###,###.##"/></td>
		<td>￥<fmt:formatNumber value="${item.backCost }" pattern="###,###,###,###.##"/></td>
		<td>
		￥
		<c:choose>
		<c:when test="${!empty item.yeJitotalcost}">
		<fmt:formatNumber value="${item.yeJitotalcost}" pattern="###,###,###,###.##"/>
		</c:when>
		<c:otherwise>0</c:otherwise>
		</c:choose>
		</td>
		<td>￥<fmt:formatNumber value="${item.totalcost }" pattern="###,###,###,###.##"/></td>
		<td><fmt:formatDate value="${item.backDate }" pattern="yyyy-MM-dd"/></td>
	</tr>
	</c:forEach>
</table>
</body>
</html>